#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/6/27
# @Author  : LiJun
# @Email   : lijun@tianyancha.com
# @Version : 1.0.0

from selenium_0627.po_page.base_page import BasePage
import allure
class AddParPage(BasePage):

    def edit_part(self, name):
        from selenium_0627.po_page.contact_page import ContactPage

        with allure.step("输入部门名字"):
            self.find_send(*self.by_maps(self.element["PART_NAME"]), message=name)
        with allure.step("点击确认"):
            self.find_click(*self.by_maps(self.element["PART_SUBMIT"]))

        return ContactPage(self.driver, self.element)
